<?php if (!defined('THINK_PATH')) exit(); require "./Application/Home/View/Index/header.php";?>
	<div class="nav">
		<ul class="clearfix" id="navul">
			<li><a href="/Home/Index/index.html"><button>首页</button></a></li>
			<li><a href="/Home/Index/anli.html"><button>制作案例</button></a></li>
			<li><button style="border:1px solid #46F8FC;background-image:radial-gradient(at 50%,#2B9DAA,#000);"><div><span></span>制作中</div>留言</button></li>
		</ul>
	</div>
	
	<div id="liuyan">

		
		<div style="width: 1000%;margin: 0 auto;max-width: 920px;">
			<form  action="/Home/Index/addly.html" method="post">
				<h3 style="color: yellow;">发表新留言</h3>
			    <textarea name="note" id="lytxt" style="width: 100%;background: #eee;border:1px solid #666;margin: 10px 0px;height:7rem;color: #000;font-size: 2rem;resize:none;"></textarea>  
			    <div>
			    	<button id="sendButton" style="color:#000;font-size: 2rem;float: right;padding: 0px 20px;margin-bottom: 20px;">发表</button>
					<div style="clear:both;"></div>	
			    </div>
				
			</form>
			<ul>
				<?php  $sum = 0; foreach ($data as $key => $value) { $sum++; echo "<li><div>".$sum."</div>".$value['note']."</li>"; } ?>
				
			</ul>
		</div>
	</div>

	<style>
		#liuyan li{
			position: relative;
			background:#fff;
			width: 100%;
			color: #000;
			text-align: left;
			padding:0px 70px; 
			line-height: 3rem;
			border:1px solid #ccc;
			word-wrap:break-word;

		}
		#liuyan li div{
			position: absolute;
			left: 30px;
		}
	</style>
	<script>
		function ly(){
			console.log();

		}
		$("#sendButton").click(function () {
			if($('#lytxt').val() == '' || $('#lytxt').val() == null){
				return false;
			}else{

			}
	        // var index = layer.load(1, {shade: 0.6});
	        // var params = $("#productForm").serialize();
	        // var url = $("#productForm").attr('action');

	        // $.ajax({
	        //     type: "POST",
	        //     url: url,
	        //     dataType: 'json',
	        //     data: params,
	        //     success: function (data) {
	        //         console.log(data);
	        //         layer.close(index);
	        //         layer.msg(data.message);
	        //         if (data.status == 0) {
	        //             layer.msg(data.message);
	        //             parent.window.location.reload();
	        //             parent.layer.close(parentIndex);
	        //         } else {
	        //             layer.msg(data.message);
	        //             return false;
	        //         }
	        //     }
	        // });
	        
	    });
	</script>
<?php require "./Application/Home/View/Index/footer.php";?>